package many_thread;

public class MyThread implements Runnable {
    private String name;
    public MyThread(){}
    public MyThread(String name) {
        this.name = name;
    }
    @Override
    public void run() {
        for (int i = 1; i <= 50; i ++) {
            System.out.println(name + "正在工作");
        }
    }
}
